package com.fastwire.carriere.user.vo;

import java.util.List;

import com.fastwire.carriere.user.entity.UserSession;

public class SessionVo {

	private String sessionId;
	private String userName;
	private List<PermissionVo> permissions;

	public SessionVo(UserSession session) {
		super();
		this.sessionId = String.valueOf(session.getOid());
		this.userName = session.getUserName();
		this.permissions = session.getPermissions();
	}

	public SessionVo() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public List<PermissionVo> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<PermissionVo> permissions) {
		this.permissions = permissions;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}
